package use;



import book.BookList;
import opera.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-07-14
 * Time: 14:17
 */
public abstract class User {
    protected String name;
    public IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }

    public abstract int meun();

    public void doIOperation(int choice, BookList bookList){
        iOperations[choice].work(bookList);
    }
}
